The Transformer Bridge Principle Circuit Using RF Admittance Technology

To investigate the problem of the lag stability of the capacitance value during the level drop of the dirty U-shaped liquid level sensor, the equivalent circuit of the dirty U-shaped liquid level sensor was analyzed, and the transformer bridge’s principle circuit that uses RF admittance technology was designed accordingly. Using the method of controlling a single variable, the measurement accuracy of the circuit was simulated when the dividing capacitance and the regulating capacitance had different values. Then, the right parameter values for the dividing capacitance and the regulating capacitance were found. On this basis, the change of the sensor output capacitance and the change of the length of the attached seawater mixture were controlled separately under the condition of removing the seawater mixture. The simulation outcomes showed that the measurement accuracy was excellent under various situations, validating the transformer principle bridge circuit’s efficacy in minimizing the influence of the output capacitance value’s lag stability.


Introduction
The prosperity and development of the marine industry put forward increasing requirements for the ship industry [1]. Additionally, the technical performance of ships is also steadily developing in the direction of automation [2]. As an important system to realize ship automation, the ship liquid level monitoring system is mainly used to monitor the liquid level in the ship's seawater tank [3][4][5]. Seawater tank in ships is an important cabin room that adjusts the balance of the boat and improves manipulation, it plays a pivotal role in maintaining the stability of the ship and the draft of the ship, and so, realizing the accuracy and reliable measurement of the internal liquid level in the seawater tank is particularly important for ship's sailing safety [6,7].
The liquid level sensor is a piece of critical equipment for measuring the internal liquid level of seawater tanks [8]. Taking a certain type of ship as an example, the U-shaped liquid level sensor is a sort of capacitive liquid level sensor with a "U-shaped" body structure that is used to monitor the seawater level in the seawater tank. According to Figure 1, it consists primarily of inner electrode 1, exterior electrode 2, insulating sheath 3, and flange plate 4. Its fundamental principle is to measure the liquid level utilizing the mathematical relationship between electrical capacity and liquid level height.
In theory, the U-shaped liquid level sensors can measure the liquid level of seawater tanks accurately and reliably. However, the seawater tank's environment is distinguished by excessive salinity and high humidity. The equipment parts and components that were exposed to this environment for an extended period of time will corrode, and the rust and sediment produced, the paint falling from the equipment surface, and small marine organisms will attach to the surface of the equipment in the tank as the seawater flows through the seawater tank. Solid sodium chloride precipitated from seawater will also collect on the surface of the apparatus when the liquid level is low. As the service life of the level sensor increases, the sensor cannot avoid this problem of dirt accumulation. This the level sensor increases, the sensor cannot avoid this problem of dirt accumulation. This dirty mixture comprises primarily of sediment, rust, sodium chloride solid precipitated from seawater, microscopic marine creatures [6], and falling paint, which is apparent in dirt 6 in Figure 1. In the actual use process, it was determined that after the U-shaped liquid level sensor was installed for an extended period of time, the output capacitance value of the sensor will lag stabilize during the process of liquid level drop, i.e., the output capacitance value will require a period of time to gradually stabilize after the falling liquid level stabilized. It directly leads to the inability to measure the internal liquid level of seawater storage tanks quickly and accurately, and posing a certain safety hazard to the navigation of ships. A thin layer of dirt will adhere to the insulating sheath's surface. The surface of the dirt is uneven and porous, and the sea water itself is adhesive. During the decline of the liquid level, some sea water will penetrate the dirt or attach to its surface, resulting in the dirt's continued conductivity up to a certain height above the liquid level. This portion of the seawater mixture has a high water content and sufficient ion mobility. The seawater mixture and external electrode are electrically conductive, resulting in a false liquid level and extra capacitance, resulting in a greater output capacitance of the sensor at this liquid level. However, as time passes, the seawater immersed in the dirty interior and adhered to the dirty surface will slowly slide down, the false liquid level will decrease, and the capacitance value will continue to decrease, leading to a lag stability of the capacitance value of the liquid level sensor during the liquid level drop. For ease of explanation, the combination of dirt, seawater, and seawater adhering to the outer surface within a specified height above the liquid level and generating a false liquid level is referred to as "attached seawater mixture," represented in Figure 1 as an attached seawater mixture 7.
To reduce the impact of dirt on the lag stability of the U-shaped liquid level sensor's capacitance value, radio frequency admittance capacitive liquid level measuring technology will be used. On the basis of the radio frequency admittance theorem, the effect of the attached seawater mixture will be investigated.
The radio frequency admittance technique is presented in order to address the problem of latency and stability of capacitance value in a U-shaped liquid level sensor. Nowadays, the capacitive radio frequency admittance liquid level sensor based on this technology covers almost all measurements of medium liquid level [9][10][11][12][13][14]. Heywood N. et al. A thin layer of dirt will adhere to the insulating sheath's surface. The surface of the dirt is uneven and porous, and the sea water itself is adhesive. During the decline of the liquid level, some sea water will penetrate the dirt or attach to its surface, resulting in the dirt's continued conductivity up to a certain height above the liquid level. This portion of the seawater mixture has a high water content and sufficient ion mobility. The seawater mixture and external electrode are electrically conductive, resulting in a false liquid level and extra capacitance, resulting in a greater output capacitance of the sensor at this liquid level. However, as time passes, the seawater immersed in the dirty interior and adhered to the dirty surface will slowly slide down, the false liquid level will decrease, and the capacitance value will continue to decrease, leading to a lag stability of the capacitance value of the liquid level sensor during the liquid level drop. For ease of explanation, the combination of dirt, seawater, and seawater adhering to the outer surface within a specified height above the liquid level and generating a false liquid level is referred to as "attached seawater mixture," represented in Figure 1 as an attached seawater mixture 7.
To reduce the impact of dirt on the lag stability of the U-shaped liquid level sensor's capacitance value, radio frequency admittance capacitive liquid level measuring technology will be used. On the basis of the radio frequency admittance theorem, the effect of the attached seawater mixture will be investigated.
The radio frequency admittance technique is presented in order to address the problem of latency and stability of capacitance value in a U-shaped liquid level sensor. Nowadays, the capacitive radio frequency admittance liquid level sensor based on this technology covers almost all measurements of medium liquid level [9][10][11][12][13][14]. Heywood N. et al. investigated and concluded that the capacitive radio frequency admittance liquid level sensor has the Sensors 2023, 23, 5434 3 of 21 benefits of a broad measurement range, high measurement accuracy, a big limit pressure, a large working temperature range, and no effect from hanging materials [15]. Chen Wei of Nanjing Forestry University and collaborators created a radio frequency admittance capacitance level meter that enables remote liquid level real-time monitoring through the combination of virtual instrument software LabVIEW and network technologies [16]. The digital radio frequency admittance capacitive liquid level sensor created by Yu Nan and colleagues at Huaiyin Institute of Technology is network-enabled thanks to their implementation of TCP/IP communication protocol and TCP socket communication [17]. In terms of sensor application, Zhou Liang and others developed the KRF series radio frequency admittance liquid level meter in response to the need for accurate measurement of liquid level in the petrochemical industry. This instrument effectively resolved the issue of false liquid level in the measurement process of capacitive liquid level sensors, and the measurement accuracy reached 0.5% [18]. Fan Xue and coworkers devised a radio frequency admittance capacitive liquid level monitoring system for the fermentation process of large yellow rice wine that showed excellent measurement accuracy and was unaffected by hanging objects. Using RFID technology, the system enabled wireless communication between the fermentation tank and the fermentation tank, as well as between the fermentation tank and the monitoring system [19].
The signal acquisition and processing procedure of radio frequency admittance liquid level measuring technology is predicated primarily on the fact that the phase of the phase current flowing through the measured liquid capacitance precedes the phase of the phase current flowing through the hanging layer. Zhang Chao of Shanghai Jiaotong University and coworkers used software to delay the interrupt service program of the PIC18F452 single-chip microcontroller, and then delayed the phase difference before initiating the A/D collector to sample [20]. Chen Xiaozhu of the Chinese Institute of Metrology and coworkers filtered the amplitude signal of phase time using the MAX903 comparator, and then performed A/D conversion for the square wave after phase shift [21]. There were flaws in this strategy as well. Due to the high frequency of the RF signal, the phase time of the signal was very short. The signal-to-noise ratio of the signal generated by this approach was low, and the anti-interference capacity was weak, but this was necessary if you want to sample during the time of falling behind the phase.
In order to enhance the signal-to-noise ratio of the output signal, consecutively, the fixed-point sampling integration technique and the chopping time-domain integration method were presented. The technique of sampling at the phase point at intervals of one or more cycles and conducting cumulative averaging is referred to as the fixed-point sampling integration method. This strategy lowers the influence of noise to a certain degree and reduces the conversion speed requirements [22][23][24]. Chopping time-domain integration technique refers to the method of chopping the signal and then integrating the signal in time domain within the phase range, which can effectively minimize the effects of the hanging layer interference signal, and may more effectively increase the signal-to-noise ratio of the output signal, therefore facilitating the future signal processing [24].
To investigate the problem of the lag stability of the capacitance value during the level drop of the dirty U-shaped liquid level sensor, and reducing the impact of the attached seawater mixture, the rest of this paper is organized as follows. Section 2 analyzes the equivalent circuit of the dirty U-shaped liquid level sensor. The transformer bridge's principle circuit that uses RF admittance technology is designed in Section 3. Additionally, the establishment of simulation circuit model of transformer bridge principle circuit is given in Section 4. In Section 5, using the method of controlling a single variable, the measurement accuracy of the circuit is simulated when the dividing capacitance and the regulating capacitance have different values. Additionally, Section 6 mainly conducted simulation on the transformer bridge principle circuit, the effectiveness of the signal processing circuit in reducing the influence of output capacitance hysteresis stability was verified. Section 7 concludes the paper.

Equivalent Circuit Analysis of U-Shaped Liquid Level Sensor with Dirt
The size of the circuit's electrical components and the wavelength of the working signal determine whether the circuit is a lumped parameter circuit or a distributed parameter circuit. The ratio of the speed of light in a vacuum to the frequency of the working signal is equal to the wavelength of the signal being produced by the working device. A lumped parameter circuit is one in which the electrical device size is much less than the wavelength. It is characterized by the fact that the size and location of a device have no effect on the voltage between any two terminals in the circuit or the current flowing into the device. If the size of the circuit's electrical components does not match the criterion of being much smaller than the wavelength, the circuit is known as a dispersed parameter circuit. It is characterized by the fact that the voltage and current in the circuit are proportional to time, geometric size, and spatial location.
The term "radio frequency" (RF) is used to denote the frequency range of very high frequency radio waves, and "radio frequency admittance" (RF admittance) describes the method of measuring admittance using such a radio frequency range. An impedance Z is a complex quantity whose reciprocal is the admittance Y. Resistance R is the real quantity, whereas reactance X is the imaginary quantity. Each of the three components of an impedance circuit-resistance (R), capacitance (C), and inductance (L)-contributes to the total impedance (Z). The equivalent impedance of the circuit when the three are connected in series is [25]: Equation (2) shows that the admittance formed by the parallel connection of conductance G and admittance B is equivalent to the impedance formed by the series connection of resistance R and reactance X.
A schematic of a dirty U-shaped liquid level sensor is shown in Figure 1. A sinusoidal RF excitation voltage · U with angular frequency ω is applied between the inner and outer electrodes of the U-shaped liquid level sensor. The inner side of the insulating sheath is directly linked to the inner electrode, while the outside side is connected to the outer electrode through the seawater being measured. From an electrical point of view, since the liquid level sensor works with radio frequency, the size of the attached seawater mixture does not reach the condition of being much smaller than the wavelength of the radio frequency signal. This means that the attached seawater mixture should be processed using the distributed parameter circuit.
The dry dirt may be considered uniform, and the attached seawater mixture with a false liquid level contains a substantial amount of water. Owing to the huge crosssectional area of the sea water measured below the liquid level in the seawater tank, the resistance of this part of sea water may be regarded to be around 0. In contrast, the attached seawater mixture is merely a thin layer adhered to the surface of the insulating sheath, with a very small cross-sectional area, a very high equivalent resistance, and a negligible inductance. Furthermore, the insulation of the insulating sheath is excellent; thus, the leakage conductance between the inner electrode and the associated seawater mixture may be disregarded. The sensor uses an RF frequency to function. The attached seawater mixture on the left and right cables may be approximated as a transmission line made of infinite resistance micro-elements R 0 and capacitance micro-elements C 0 , where the resistance micro-elements R 0 represent the unit length resistance of the seawater mixture attached to the left and right cables along the direction of the insulating sheath, and the capacitance micro-elements C 0 represent the unit length capacitance of the insulating sheath as dielectric. Take the single-sided cable as the topic of study and record the unit length series impedance of the equivalent transmission line as Z 0 , ignoring the inductance, Z 0 can be expressed as [26] where ω is the angular frequency, L is the inductance per unit length of the equivalent transmission line and L = 0, ρ is the resistivity of the attached mixture of seawater, and S is the cross-sectional area of the attached seawater mixture. Note that the parallel admittance per unit length of the equivalent transmission line is Y 0 , since the leakage conductance is ignored, Y 0 can be expressed as [26] where G is the corresponding transmission line's leakage current per unit length G = 0 and f is its frequency. The impedance of the equivalent transmission line can be expressed as [26] Substitute Formulas (3) and (4) into Formula (5) and simplify it to when the length of the attached seawater mixture is enough, the seawater mixture that is attached to one side of the cable may approximately be considered as a transmission line. This occurs when the length of the attached seawater mixture is sufficient. According to Formula (6), the absolute values of the real and imaginary parts of the equivalent impedance of the attached seawater mixture on one side of the cable are equal. This indicates that the modulus of the equivalent resistance and the equivalent capacitance are also equal. The equivalent resistance can be understood as the pure resistance of the attached seawater mixture. The equivalent capacitance can be understood as the pure capacitance of the equivalent resistance. The capacitance that may be regarded as the equivalent capacitance is the capacitance that exists between the attached seawater mixture and the inner electrode, with the insulating sheath serving as the dielectric. Due to the presence of an insulating sheath between the inner electrode and the seawater used in the measurement, no direct current channel exists between the inner electrode and the earth. As can be seen in Figure 2, from an electrical perspective the impedance of the seawater mixture attached to the single-side cable may be comparable to a resistance R eq and a capacitance C eq in series, and the impedance of the capacitance C eq is recorded as Z C . It is important to note that eql R and eql C represent the equivalent resistance and capacitance of the seawater mixture attached to the left cable, whereas eqr R and eqr C indicate the equivalent resistance and capacitance of the seawater mixture tied to the right cable. From an electrical perspective, the attached seawater mixture on both sides of the It is important to note that R eql and C eql represent the equivalent resistance and capacitance of the seawater mixture attached to the left cable, whereas R eqr and C eqr indicate the equivalent resistance and capacitance of the seawater mixture tied to the right cable. From an electrical perspective, the attached seawater mixture on both sides of the cables, which influences the lag stability of the sensor capacitance value, may be compared to a circuit made up of capacitance C eql and R eql resistance, capacitance C eqr and resistance R eqr . Figure 3 shows the circuit model of the dirty U-shaped liquid level sensor. The inner and outer electrodes of the U-shaped liquid level sensor are the equivalent circuit poles of the seawater mixture linked to both sides of the wires. It is important to note that eql R and eql C represent the equivalent resistance and capacitance of the seawater mixture attached to the left cable, whereas eqr R and eqr C indicate the equivalent resistance and capacitance of the seawater mixture tied to the right cable. From an electrical perspective, the attached seawater mixture on both sides of the cables, which influences the lag stability of the sensor capacitance value, may be compared to a circuit made up of capacitance eql C and eql R resistance, capacitance eqr C and resistance eqr R . Figure 3 shows the circuit model of the dirty U-shaped liquid level sensor.
The inner and outer electrodes of the U-shaped liquid level sensor are the equivalent circuit poles of the seawater mixture linked to both sides of the wires.  Figure 4 depicts the transformer bridge circuit used to reduce the effect of capacitance value's lag stability during the level drop of the dirty U-shaped liquid level sensor. This circuit transmits the sinusoidal AC signal to the bridge circuit via the transformer, detects the sensor capacitance under the condition of removing the attached seawater mixture via the bridge circuit, collects the output voltage signal from the bridge circuit, performs signal fitting processing, and inputs the fitted signal function into the corresponding program. The architecture that involves sending sinusoidal alternating current signals to the bridge circuit through transformer has two benefits. The design has the potential to increase the measurement range of capacitance on the one hand, while on the other, the   It is important to note that eql R and eql C represent the equivalent resistance and capacitance of the seawater mixture attached to the left cable, whereas eqr R and eqr C indicate the equivalent resistance and capacitance of the seawater mixture tied to the right cable. From an electrical perspective, the attached seawater mixture on both sides of the cables, which influences the lag stability of the sensor capacitance value, may be compared to a circuit made up of capacitance eql C and eql R resistance, capacitance eqr C and resistance eqr R . Figure 3 shows the circuit model of the dirty U-shaped liquid level sensor.

Principle Circuit Design of Transformer Bridge
The inner and outer electrodes of the U-shaped liquid level sensor are the equivalent circuit poles of the seawater mixture linked to both sides of the wires.  Figure 4 depicts the transformer bridge circuit used to reduce the effect of capacitance value's lag stability during the level drop of the dirty U-shaped liquid level sensor. This circuit transmits the sinusoidal AC signal to the bridge circuit via the transformer, detects the sensor capacitance under the condition of removing the attached seawater mixture via the bridge circuit, collects the output voltage signal from the bridge circuit, performs signal fitting processing, and inputs the fitted signal function into the corresponding program. The architecture that involves sending sinusoidal alternating current signals to the bridge circuit through transformer has two benefits. The design has the potential to increase the measurement range of capacitance on the one hand, while on the other, the The architecture that involves sending sinusoidal alternating current signals to the bridge circuit through transformer has two benefits. The design has the potential to increase the measurement range of capacitance on the one hand, while on the other, the transformer has the ability to give synchronous sampling trigger signal. The transformation ratio of the transformer is n, and the impedance of the secondary equivalent load may be altered to 1/n 2 that of the primary impedance by utilizing the transformer as opposed to adding the input signal directly to the bridge circuit while maintaining the same load at the input end.

Principle Circuit Design of Transformer Bridge
Using a transformer with a transformation ratio greater than one may effectively lower the impedance of the secondary equivalent load, while maintaining the input power and rated power of the transformer, so as to increase the measuring range of the liquid level capacitance. Nevertheless, a greater input voltage may be produced through the transformer when the capacitance detection range of the liquid level sensor is fixed. In the synchronous phase voltage with the same frequency as the phase voltage · E 1 , whose function is to provide the required sampling trigger signal for a particular time after a series of processing.
The adjusting capacitance C r , as illustrated in Figure 4, is the capacitance connected to the range, and its value is controlled by the sensor range. C z is the dividing capacitance, C r and C z shared it with the phase voltage · E 1 . C w is the sensor's output capacitance after removing the associated seawater mixture. The circuit is built on the unbalanced bridge idea. When the output capacitance C w varies due to the selection of suitable C r and C z values, the bridge circuit is in an imbalanced condition. Hence, the signal · U out comprising the relevant attributes of C w is output. The capacitance value's lag stability of the U-shaped liquid level sensor may be reduced with specialized processing, and the value of the output capacitance C w can be achieved. The whole procedure is as follows. Figure 4 shows the equivalent circuit of the U-shaped liquid level sensor's output capacitance for dirt, represented by the dashed box; the total equivalent circuit impedance of the output capacitance is denoted by Z σ .
The equivalent impedance of the seawater mixture in the left and right cables is Z eql and Z eqr , respectively. Formula (1) may be used to determine the equivalent impedance of the seawater mixture when it is connected to both left and right wires.
According to the radio frequency admittance theorem, the real part and the imaginary part of the equivalent impedance of the seawater mixture attached to the cable on one side have the same absolute value. These absolute values are equal.
Substitute Formula (13) into Formula (11) Similarly, substituting Formula (14) into Formula (11) Substitute Formulas (15) and (16) into Formula (10) In Figure 4, · U α and · U β respectively represent the phase voltage on both sides of the sensor output capacitance when the dividing capacitance C z and the attached seawater mixture are removed, and · U out represents the output voltage. The relationship between the three is Substitute Formulas (18) and (20) into The capacitors C eql and C eqr take the insulating sheath as the dielectric, select the appropriate adjusting capacitor C r , so that the formula C w + C r C eql + C eqr is established, so the Formula (21) can be simplified as If the secondary AC voltage of the transformer is e 1 (t) = E 1 cos(ωt), then In the formula, record Therefore, the corresponding sinusoidal quantities of phase voltages · U σ , · U λ and · U out can be expressed as Figure 5 demonstrates that the phase of u λ (t) lags behind the phase of u σ (t) by π/4, where the voltage u σ (t) is only related to the output capacitance C w of the sensor when the attached seawater mixture is removed and it has nothing to do with the equivalent capacitance C eql of the seawater mixture attached to the left cable or the equivalent capacitance C eqr of the seawater mixture attached to the right cable. The voltage u λ (t) is related to the capacitances C eql and C eqr . The output voltage u out (t) results from the interaction between u σ (t) and u λ (t). To remove the impact of the equivalent capacitance C eql and C eqr on the output voltage u out (t), just set the output voltage u λ (t) to zero. In Figure 5, the change curve of voltage u λ (t) with phase ωt shows that voltage u λ (t) is a periodic function with horizontal axis symmetry. Choose a suitable phase interval for voltage u λ (t) integration such that the integral value of voltage u λ (t) in this phase interval is zero.    Take phase interval π/4 − 5π/4 as an example, as seen in Figure 5, when ωt is in phase interval π/4 − 5π/4, the integral results of voltage u σ (t) and voltage u λ (t) are as follows.
The sampling interval signal is sampled and integrated during the first cycle π/4 − 5π/4. The definitive integral value of voltage u λ (t) is zero, removing the effect of equivalent capacitance C eql and C eqr on output voltage u out (t), and recording the output voltage of transformer bridge circuit as U σout .
Both C z and C r in Formula (31) are known, and the output capacitance C w of the Ushaped liquid level sensor when the attached seawater mixture is removed can be calculated.

The Establishment of Simulation Circuit Model of Transformer Bridge Principle Circuit
The simulation model of the transformer bridge principle circuit is built by using the MATLAB Simulink program, as shown in Figure 6. Then, the value of the regulating capacitance C r and the dividing capacitance capacitor C z is simulated, and finally, the transformer bridge principle circuit is tested. The primary concept behind this simulation is as follows: after the values of the parameters in the circuit have been determined, the output signal u out (t) from the transformer bridge principle circuit will alter depending on the capacitance C w value. In accordance with Formulae (29)-(31), the voltage value U σout exclusively linked to capacitance C w may be derived by sampling and integrating the signal during π/4 − 5π/4. To acquire the voltage value U σout corresponding to distinct output signals u out (t), first fit the different output signals u out (t) to obtain the function expression of the output signal u out (t), then complete the definite integral solution of the output signal function u out (t) in the phase interval π/4 − 5π/4 via the program, and then calculate the capacitance C w according to Formula (32).

The Establishment of Simulation Circuit Model of Transformer Bridge Principle Circuit
The simulation model of the transformer bridge principle circuit is built by using the MATLAB Simulink program, as shown in Figure 6. Then, the value of the regulating capacitance r C and the dividing capacitance capacitor z C is simulated, and finally, the transformer bridge principle circuit is tested. The primary concept behind this simulation is as follows: after the values of the parameters in the circuit have been determined, the output signal  When an AC power source is used to input a sine AC signal · E 0 , the signal frequency is f , and its relationship with angular frequency ω is ω = 2π f . Both the main and secondary alternating current signals from the transformer may be represented as follows.
The input signal · E 0 provides a voltage signal to the bridge circuit through the transformer, and the selection of its frequency f is important. When the frequency of input signal · E 0 is too low, the wavelength of the signal is large, and the size of the attached seawater mixture is much smaller than the wavelength of the signal, then the attached seawater mixture will not be processed according to the distributed parameter circuit, and the circuit design of the transformer bridge principle will not be established. Conversely, when the frequency f of input signal is too high, it will also increase the difficulty of subsequent sampling. According to the frequency of the applicable RF admittance capacitance instrument, the input signal frequency chosen for this design is f = 300 kHz and the angular frequency is ω = 2π f = 1.885 × 10 6 rad/s. As the AC voltage source, the common 24V AC voltage source is utilized. In accordance with the transformer's impedance transformation principle, the secondary impedance is equal to 1/n 2 of the primary impedance. Without modifying the input voltage or rated power, a transformer with a transformation ratio larger than 1 is used. The secondary impedance of the transformer is decreased, which can significantly expand the capacitance measurement range. In this design, the common transformer with a 2:1 transformation ratio is used; hence, the secondary voltage amplitude of the transformer is E 1 = 12 V.
Equation (32) is obtained by neglecting tiny capacitance C eql and C eqr , so when selecting capacitance C r , equation C w + C r C eql + C eqr must be established. According to Formula (28), the output signal u out (t) can be expressed as Equation (35) can be simplified as Using MATLAB to analyze and fit the output signal · u out (t) under various situations. According to Formula (38), function u out (t) may be seen as the Fourier expansion with the first term equal to 0 and the series equal to 1, hence the Fourier model with the series equal to 1 is chosen as the fitting model, and the fitting equation is y = a 0 + a 1 cos(ωt) + b 1 sin(ωt).
The function expression of the output signal u out (t) generated by fitting is swapped into the prepared MATLAB program, and the result C w is ultimately produced. The purpose of this program is to integrate the output signal u out (t) in the phase interval π/4 − 5π/4 and determine the value of C w according to the Formula (32). Below is the calculating method for: syms t % Define time t ω = 2 * pi * 300, 000; % Angular frequency f = a0 + a1 * cos(ω * t) + b1 * sin(ω * t; % Substitute the output signal function expression obtained by fitting a= ω * int( f , t, pi/(4 * ω), 5 * pi/(4 * ω)); % integrate the output signal at π/4 − 5π/4 , and set the integral value as a b = Cr; % Enter the value of regulating capacitance c = Cz; % Enter the value of dividing capacitance d = ((12 * sqrt (2) − a) * b * c − a * b * b)/ (a * (b + c) + 12 * sqrt (2) * b); % d represents the value of C w 5. Simulation Analysis of Transformer Bridge Principle Circuit Parameters C z and C r 5.1. The Influence of the Value of Dividing Capacitance C z on the Measurement Accuracy of Capacitance C w The dividing capacitance C z and regulating capacitance C r values will be calculated using a single variable approach. Capacitance C w and the length of the attached seawater mixture will be kept constant, while only the dividing capacitance C z and the regulating capacitance C r will be regulated to vary at once. This will ensure that the capacitance C eql , capacitance C eqr , electrical resistance R eql , and electrical resistance R eqr remain unchanged. Analyze the deviation from the theoretical value of C w in your simulations to settle on a final value for the transformer bridge principle circuit's regulating capacitance C r and dividing capacitance C z . The detection capacitance target range of the transformer bridge principle circuit is designed to be 0 − 2000.0 pF based on the change range of the output capacitance value of the U-shaped liquid level sensor without dirt. So the intermediate value of the target range, 1000 pF, is chosen as the theoretical value of C w during simulation.
The length of the seawater mixture attached to the left and right cables of the U-shaped liquid level sensor is l l and l r respectively. According to the capacitance formula of the coaxial cylindrical capacitor, the equivalent capacitance C eql or C eqr corresponding to the seawater mixture attached to the single side cable can be obtained as Substitute Formulas (39) and (40) into Formulas (13) and (14), respectively.
When the capacitance C w and the length of the seawater mixture are held constant, a quantitative investigation into the impact that various values of the dividing capacitance C z have on the measurement accuracy of capacitance C w is carried out. Since there is very little space between the cables that are located on the left and right sides of the U-shaped liquid level sensor, the length of the seawater mixture that is attached to the cables that are located on both sides is approximately the same, so C eql = C eqr and R eql = R eqr can be launched.
Take either value as the length of attached seawater mixture on the left and right sides, taking l l = l r = 10.0 cm as an example. C w = 1.0 × 10 −9 F is chosen as the theoretical value during simulation. Then, calculate the associated equivalent capacitance C eql = C eqr = 4.3943 × 10 −11 F and equivalent resistance R eql = R eqr = 12072.7486 Ω using Formulas (39)-(42). Choose the value for regulating capacitance C r as 1.0 × 10 −7 F in order to make the Formula C w + C r C eql + C eqr viable. It is found that the capacitance less than 1.0 × 10 −13 F or larger than 1.0 × 10 −4 F is not common through the investigation of the capacitance circulating in the market. Considering the design of the signal processing circuit board for the liquid level sensor in the next step, in order to reduce the difficulty of maintenance and repair, it is recommended to choose common capacitor in the market for research. So the range of variation for the dividing capacitance C z is 1.0 × 10 −13 F ≤ C z ≤ 1.0 × 10 −4 F.Consider the values C z of the various orders of magnitude, as shown in Table 1, and simulate their effect on the measurement accuracy of capacitance C w under various scenarios. It can be found that the output signals under different circumstances are sinusoidal AC signals, taking the output signals of C z = 1.0 × 10 −11 F as an example, as shown in Figure 7.
The output signal u out (t) that corresponds to the various dividing capacitance C z is fitted, and the fitted angular frequency is 1.885 × 10 6 rad/s. As this value is consistent with the theoretical value of ω = 2π f = 1.885 × 10 6 rad/s, it demonstrates that the angular frequency of the signal does not change at any point throughout the process of simulation. Table 1 displays the results of the fitting of the additional quantities.  The output signal ( ) out u t that corresponds to the various dividing capacitance z C is fitted, and the fitted angular frequency is 6 1.885 10 rad/s × . As this value is consistent with the theoretical value of 6 2 1.885 10 rad/s f ω π = = × , it demonstrates that the angular frequency of the signal does not change at any point throughout the process of simulation. Table 1 displays the results of the fitting of the additional quantities.
The output signal's function expression that corresponds to various dividing capacitance z C may be substituted into the calculation program of w C . The output result and relative error are shown in Table 2. Based on the assumption that the length of the attached seawater mixture is constant, the capacitance , the relative inaccuracy of the simulation value is greater than 3 percent, and the capacitance w C measurement accuracy is low.   The output signal's function expression that corresponds to various dividing capacitance C z may be substituted into the calculation program of C w . The output result and relative error are shown in Table 2. Based on the assumption that the length of the attached seawater mixture is constant, the capacitance C w = 1.0 × 10 −9 F and the regulating capacitance C r = 1.0 × 10 −7 F, the inaccuracy in the simulated value of the capacitance C w in comparison to its theoretical value when the value of the dividing capacitance C z varies within the range of 10 −14 − 10 −10 F and 10 −8 − 10 −7 F is within ±1%. When the value of the dividing capacitance C z is C z = C w = 1.0 × 10 −9 F, the relative inaccuracy of the capacitance simulation value C w surpasses 8 percent. When the value of the dividing capacitance C z ≥ 10 −6 F, the relative inaccuracy of the simulation value is greater than 3 percent, and the capacitance C w measurement accuracy is low. 1.0 × 10 −13 9.9506 × 10 −10 −0.49% 1.0 × 10 −12 1.0029 × 10 −9 0.29% 1.0 × 10 −11 1.0003 × 10 −9 0.03% 1.0 × 10 −10 1.0033 × 10 −9 0.33% 1.0 × 10 −9 9.1806 × 10 −10 −8.19% 1.0 × 10 −8 1.0076 × 10 −9 0.76% 1.0 × 10 −7 9.9630 × 10 −10 −0.37% 1.0 × 10 −6 1.0439 × 10 −9 4.39% 1.0 × 10 −5 9.5817 × 10 −10 −4.18% 1.0 × 10 −4 1.0342 × 10 −9 3.42% After analyzing the value of the dividing capacitance C z is C z = C w = 1.0 × 10 −9 F, the reason why the relative inaccuracy of the simulated capacitance C w value is quite big is determined. According to Formulae (35)-(37), when the value of the dividing capacitance C z is C z = C w , the value of X is zero, while the value of Y is very tiny, and the order of magnitude 10 −3 is typically. Hence, the output signal u out (t) is now a faint signal with a very small amplitude. The acquisition of this weak signal is prone to produce a certain error. Thus, the relative inaccuracy of the capacitance C w computed by the algorithm is substantial. Consequently, C z = C w should be avoided as much as feasible while selecting the dividing capacitance's value.
The transformer bridge principle circuit has a detection capacitance goal range of 0 − 2000.0 pF, where the range of capacitance C w change is 0 − 2000.0 pF. Consequently, a value of the dividing capacitance C z that falls within the range of 0 − 2.0 × 10 −9 F ought to be avoided at all costs. Furthermore, the relative inaccuracy of the capacitance values C w corresponding to the various C z values in Table 2 should be taken into account. The relative inaccuracy of the simulated value C w is quite substantial when the value of the dividing capacitance C z is within the range of 10 −6 − 10 −4 F, and the deviation value exceeds tens of picofarad. Because of this, it is important to avoid keeping the value of the dividing capacitance C z anywhere within the range of 10 −6 − 10 −4 F. The relative error corresponding to the dividing capacitance C z = 1.0 × 10 −7 F is smaller than the relative error corresponding to the dividing capacitance C z = 1.0 × 10 −8 F, which means that the final value of the dividing capacitance is C z = 1.0 × 10 −7 F.

The Influence of the Value of Regulating Capacitance C r on the Measurement Accuracy of Capacitance C w
The approach of controlling a single variable is used in simulation studies to examine how the value of regulating capacitance C r affects the precision of capacitance measurements, and from there to establish the best possible value for regulating capacitance C r .C w = 1.0 × 10 −9 F is chosen as the theoretical value during simulation. Additionally, Choose the dividing capacitance value as C z = 1.0 × 10 −7 F. Take either value as the length of the attached seawater mixture on the left and right sides, taking l l = l r = 10.0 cm as an example. Then, calculate the associated equivalent capacitance C eql = C eqr = 4.3943 × 10 −11 F and equivalent resistance R eql = R eqr = 12072.7486Ω according to Equations (39)-(42).
The value of the regulating capacitance C r must first satisfy the criteria of the formula C w + C r C eql + C eqr , because the capacitance C eql + C eqr = 4.3943 × 10 −11 F, and capacitance C w is in the range of 0 − 2 × 10 −9 pF, the value of C r cannot be less than 1.0 × 10 −9 F. It is found that the capacitance less than 1.0 × 10 −13 F or larger than 1.0 × 10 −4 F is not common through the investigation of the capacitance circulating in the market. Considering the design of the signal processing circuit board for the liquid level sensor in the next step, in order to reduce the difficulty of maintenance and repair, it is recommended to choose common capacitor in the market for research. So the range of variation for the regulating capacitance C r is 1.0 × 10 −9 F ≤ C r ≤ 1.0 × 10 −4 F. Under the premise that the guaranteed C w + C r C eql + C eqr is established, considering the values C r of the various orders of magnitude, as shown in Table 3. Additionally, simulate their effect on the measurement accuracy of capacitance C w under various scenarios. It can be found that the output signals under different circumstances are sinusoidal AC signals, taking the output signals of C r = 1.0 × 10 −8 F as an example, as shown in Figure 8.
The output signal u out (t) that corresponds to the various regulating capacitances C r is fitted, and the fitted angular frequency is 1.885 × 10 6 rad/s. Since this value is consistent with the theoretical value of ω = 2π f = 1.885 × 10 6 rad/s, it demonstrates that the angular frequency of the signal remains unchanging throughout the process of simulation. Table 3 displays the fitting outcomes for all other variables.  , it demonstrates that the angular frequency of the signal remains unchanging throughout the process of simulation. Table 3 displays the fitting outcomes for all other variables. Table 4 demonstrates the output result and relative error achieved by substituting the function expression of the output signal corresponding to the various regulating capacitances r C into the w C calculation program. Under the assumption that the length of the attached seawater mixture is fixed, the capacitance is    Table 4 demonstrates the output result and relative error achieved by substituting the function expression of the output signal corresponding to the various regulating capacitances C r into the C w calculation program. Under the assumption that the length of the attached seawater mixture is fixed, the capacitance is C w = 1.0 × 10 −9 F, and the dividing capacitance is C z = 1.0 × 10 −7 F, it is demonstrates that when the value of regulating capacitance C r changes within the range of 10 −9 − 10 −7 F, the error of C w the simulated capacitance value relative to the theoretical value is within ±1%. Nevertheless, when the value of the regulating capacitance varies within the range of 10 −6 − 10 −5 F, the relative inaccuracy of the simulation value is relatively larger. When the value of regulating capacitance C r is 10 −4 F, there is a significant deviation of the simulation value C w . 1.0 × 10 −9 1.0018 × 10 −9 0.18% 1.0 × 10 −8 9.9994 × 10 −10 −0.01% 1.0 × 10 −7 9.9630 × 10 −10 −0.37% 1.0 × 10 −6 1.0332 × 10 −9 3.32% 1.0 × 10 −5 9.6716 × 10 −10 −3.28% 1.0 × 10 −4 2.7613 × 10 −9 176.13% When the value of the regulating capacitance C r is 10 −4 F, analyze the cause of the simulation value's error C w . Since the output capacitor C w and regulating capacitance C r share the phase voltage · E 1 , if the value of the regulating capacitance C r is too high, the regulating capacitance will nearly completely share the phase voltage. At this point, the output signal u out (t) will scarcely be affected by a change in capacitance C w . In accordance with Formulas (35)-(37), the output signal u out (t) at this time is a weak signal with a very small amplitude, and the error of the weak signal in fitting is large. This directly results in a serious deviation of the calculation results of capacitance C w through the following program. So there is an upper limit to the value of regulating capacitance C r .The value of the regulating capacitance C r should not be larger than 1.0 × 10 −4 F, however, since from the standpoint of practical application, if it is, the weak signal u out (t) supplied by the circuit is particularly sensitive to outside interference and immersed in noise in practical use.
According to the simulation results in Table 4, when the capacitance C w = 1.0 × 10 −9 F and C eql + C eqr = 4.3943 × 10 −11 F, and the value of the regulating capacitance C r is within the range of 10 −9 − 10 −7 F, the accuracy of the simulated value of the capacitance C w is high. It shows that when the value of C w + C r is 2 to 5 orders of magnitude larger than the value of C eql + C eqr , the formula C w + C r C eql + C eqr is established, and the precision of the simulation value of capacitance C w is higher. When C r = 1.0 × 10 −8 F, C w + C r = 1.1 × 10 −8 F, C w have the highest accuracy of simulation value, which is only 0.01%. It is indicated that when C w + C r is 3 orders of magnitude larger than C eql + C eqr , C w has the highest accuracy of simulation value.
The spectrum of capacitance C w is 0 − 2 × 10 −9 pF. Furthermore, according to Formulas (39) and (40), the equivalent capacitance C eql and C eqr rise as the length of the attached seawater mixture grow. When the length of the attached seawater mixture is 0.005 m, the equivalent capacitance C eql and C eqr has an order of magnitude of −12. When the length of the attached seawater mixture is 0.03 m, the equivalent capacitance C eql and C eqr has an order of magnitude of −11. When the length of the attached seawater mixture is 0.23 m, the equivalent capacitance C eql and C eqr has an order of magnitude of −10. Applying the concept of limits, when the length of the attached seawater mixture is larger than 0.23 m and less than 2.020 m, the order of magnitude of the equivalent capacitance C eql and C eqr remains at −10, but it should be apparent that the real length of the attached seawater mixture will not exceed 2.020 m.
To establish the formula C w + C r C eql + C eqr and ensure greater measurement accuracy of capacitance C w , it is necessary to make the value C w + C r 2 to 5 orders of magnitude greater than the value of C eql + C eqr . As the equivalent capacitance of different lengths of attached seawater mixture is predominantly between −11 and −10, and to determine the value of the regulating capacitance as C r = 1.0 × 10 −7 F.

Circuit Parameters
The simulation and analysis of the output signal u out (t) for varying values of dividing capacitance C z and regulating capacitance C r are performed using the single variable research method. The fitting results of the output signal u out (t) under varying conditions and the relative error of capacitance C w are examined. Finally, C z = 1.0 × 10 −7 F and C r = 1.0 × 10 −7 F are determined. The important characteristics of the circuit based on the transformer bridge concept are listed in Table 5. Table 5. Parameters of the simulated circuit.

Parameter
Value Unit

Simulation Results and Analysis When the Capacitance C w Changes
In order to validate the efficiency of the transformer principle bridge circuit in reducing the lag stability of the capacitance value of the U-shaped liquid level sensor, the transformer principle bridge circuit's characteristics are primarily evaluated from two perspectives. On the one hand, calculating the accuracy of the capacitance C w simulation value obtained through transformer principle bridge circuit and corresponding program when the capacitance C w changes. On the other hand, when the length of the attached seawater mixture varies, measuring the accuracy of C w simulation value. If the simulated value of capacitance C w obtained from measurement has high accuracy, it will verify that the transformer principle bridge circuit has the capability to effectively reduce the lag stability of the U-shaped liquid level sensor's capacitance value. Instead, if the measurement accuracy is low, it will indicate that the principle circuit is not suitable for the study of reducing the stability impact of output capacitance hysteresis.
For simulation verification, the method of controlling a single variable is utilized. The length of the attached seawater mixture is maintain a certain value, the value of capacitance C eql , capacitance C eqr , resistance R eql and resistance R eqr maintain a fixed value. Calculating the measurement precision when the capacitance C w varies. The length of the seawater mixture attached to the cables on the left and right sides should be taken as one value. As an example l l = l r = 10.0 cm, the relevant equivalent capacitance C eql = C eqr = 4.3943 × 10 −11 F and equivalent resistance R eql = R eqr = 12072.7486 Ω are computed using Formulas (39)-(42).
Specifically, the regulating capacitance is C r = 1.0 × 10 −7 F, and the dividing capacitance is C z = 1.0 × 10 −7 F. The transformer bridge principle circuit has a capacitance detection target range of 0 − 2000.0 pF. Table 6 demonstrates that the changing gradient of capacitance C w should be set at 200 pF. Simulate the measurement accuracy as a function of the capacitance C w change. It can be found that the output signals under different circumstances are sinusoidal AC signals, taking the output signals of C w = 1.0 × 10 −9 F as an example, as shown in Figure 9.  , it demonstrates that the angular frequency of the signal remains unchanging throughout the process of simulation. The results of fitting other quantities are shown in Table 6.
After the fitting process, the equations for the function of the output signal that corresponds to the various capacitances w C are derived and then replaced into the calculation program. The simulated value of capacitance w C , as well as its relative error, may be The output signal u out (t) that corresponds to the various capacitances C w is fitted, and the fitted angular frequency is 1.885 × 10 6 rad/s. Since this value is consistent with the theoretical value of ω = 2π f = 1.885 × 10 6 rad/s, it demonstrates that the angular frequency of the signal remains unchanging throughout the process of simulation. The results of fitting other quantities are shown in Table 6.
After the fitting process, the equations for the function of the output signal that corresponds to the various capacitances C w are derived and then replaced into the calculation program. The simulated value of capacitance C w , as well as its relative error, may be apparent in Table 7. When the length of the attached seawater mixture is kept fixed, the relative error of the simulated capacitance C w is contained within ±1%, and the precision of the measurement is good. It demonstrates that the transformer principle bridge circuit can effectively reduce the lag stability of the capacitance value of the U-shaped liquid level sensor when the length of the attached seawater mixture is fixed.  9.9630 × 10 −10 −0.37% 1.2 × 10 −9 1.1993 × 10 −9 −0.06% 1.4 × 10 −9 1.4036 × 10 −9 0.26% 1.6 × 10 −9 1.5991 × 10 −9 −0.06% 1.8 × 10 −9 1.8066 × 10 −9 0.37% 2.0 × 10 −9 1.9995 × 10 −9 −0.03%

Simulation Results and Analysis When the Length of Attached Seawater Mixture Changes
For simulation verification, the approach of manipulating a single variable is utilized. The detecting capacitance goal range of the transformer bridge principle circuit is 0 − 2000.0 pF, and the target range's intermediate value of 1000.0 pF is selected as the capacitance value C w during simulation. The dividing capacitance is C z = 1.0 × 10 −7 F and the regulating capacitance is C r = 1.0 × 10 −7 F. Simulate the measurement accuracy of the capacitance C w when the length l l and l r of the seawater mixture attached to the cables on the left and right sides of the U-shaped liquid level sensor have different values. Using l l and l r as distinct values, compute the associated equivalent capacitance C eql = C eqr and equivalent resistance R eql = R eqr using Formulae (39)-(42), as given in Table 8. l l = l r = 0.5 cm represents the scenario in which a very short length of the attached seawater mixture is present. As shown in Figure 10, the relevant output signal u out (t) under various situations is generated via simulation calculation. It can be seen that the output signal is a sinusoidal AC signal, taking the output signals of l l = l r = 8 cm as an example, as shown in Figure 10.  1.885 10 rad/s f ω π = = × , demonstrating that the signal's angular frequency is always steady throughout the simulation process. Table 9 displays the fitting results of various quantities. Table 9. Fitting results of output signals corresponding to different lengths of attached seawater mixture. The output signal u out (t) corresponding to the length of different attached seawater mixtures is fitted, and the fitted angular frequency is 1.885 × 10 6 rad/s, which is consistent with the theoretical value of angular frequency ω = 2π f = 1.885 × 10 6 rad/s, demonstrating that the signal's angular frequency is always steady throughout the simulation process. Table 9 displays the fitting results of various quantities. The output signal u out (t) function obtained by fitting is substituted into the calculation program of C w . Table 10 displays the output result and relative error. As shown in Table 10, the relative error of capacitance C w under various situations is within ±1%, and the precision of the measurement is excellent. It demonstrates that the transformer principle bridge circuit can effectively reduce the lag stability of the capacitance value of the Ushaped liquid level sensor induced by the attached seawater mixture when the length of the attached seawater mixture varies.  1.0032 × 10 −9 0.32% 4.0 9.9949 × 10 −10 −0.05% 8.0 9.9974 × 10 −10 −0.03% 12 9.9917 × 10 −10 −0.08% 16 1.0020 × 10 −9 0.20% 20 1.0019 × 10 −9 0.19% 24 9.9613 × 10 −10 −0.39% 28 1.0004 × 10 −9 0.04% 32 9.9915 × 10 −10 −0.09% 36 9.9964 × 10 −10 −0.04%

Conclusions
To reduce impact of the lag stability of the capacitance value during the level drop, a signal processing method that uses the phase difference was proposed on the basis of analyzing the equivalent circuit of the dirty U-shaped liquid level sensor, and a signal processing principle verification circuit was designed. Additionally, the signal processing circuit was then simulated by MATLAB Simulink software, the values of dividing capacitance and regulating capacitance were determined, and the effectiveness of the signal processing circuit in reducing the influence of output capacitance hysteresis stability was verified. The following is an outline of the main contents.
(1) When the length of the attached seawater mixture is long enough, it can be concluded mathematically that the impedance modulus of the equivalent resistance and the equivalent capacitance are identical to one another. The circuit model of a U-shaped liquid level sensor with dirt is constructed on the basis of this information.
(2) A design was developed for the fundamental circuit of a transformer bridge, which can get rid of the sensor's lag stability. It is inferred that the output signal u out (t) of the circuit is integrated in the phase range π/4 − 5π/4, which may remove the impact of the attached seawater mixture, and the capacitance C w can be computed based on the definitive integral result of the output signal u out (t).
(3) The fundamental circuit of the transformer bridge is simulated using the MATLAB Simulink software, and the values of the dividing capacitance C z and the regulating capacitance C r are controlled by changing a single variable. On the basis of this, individually regulate the change in capacitance C w and the change in the length of the attached seawater mixture l l and l r , and then simulate and compute the simulated value of the capacitance C w under various situations. As the relative error ±1% is within and the accuracy is excellent, this demonstrates that the transformer principle bridge circuit is successful in getting rid of the lag stability of the capacitance value of the U-shaped liquid level sensor.